﻿@model Quester.Models.StudentEditVModel

@{
    ViewBag.Title = "StudentEdit";
}

<h2>@Model.LastName @Model.Name[0]. @Model.FatherName[0]. - @Model.Group</h2>

@using(Html.BeginForm())
{    
    @Html.ValidationSummary(true)
    @Html.HiddenFor(m => m.ID)
    @Html.HiddenFor(m => m.GroupID)
    @Html.HiddenFor(m => m.Group)
<table class="editForm">
    <tbody>
        <tr>
            <th>@Html.LabelFor(m => m.Login)
            </th>
            <td>@Html.TextBoxFor(m => m.Login, new { disabled = "disabled" })
                @Html.HiddenFor(m => m.Login)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.EMail)
            </th>
            <td>@Html.EditorFor(m => m.EMail)
            </td>
        </tr>
        <tr>
            <th>Скинути пароль
            </th>
            <td class="ActButton">@Html.ActionLink("Скинути", "ResetPass", new { @ID = Model.ID })
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.LastName)
            </th>
            <td>@Html.EditorFor(m => m.LastName)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.Name)
            </th>
            <td>@Html.EditorFor(m => m.Name)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.FatherName)
            </th>
            <td>@Html.EditorFor(m => m.FatherName)
            </td>
        </tr


        <tr>
            <th><input type="submit" value="Зберегти" class="ActButton"/>
            </th>
            <td class="ActButton">@Html.ActionLink("Відміна", "GroupDetail", new { @ID = Model.GroupID })
            </td>
        </tr>
    </tbody>
</table>
}
